package com.ddxcloud.movie.service;

import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ddxcloud.movie.data.dto.*;
import com.ddxcloud.movie.data.entity.Channel;
import com.ddxcloud.movie.data.vo.SeatsVO;
import com.ddxcloud.movie.data.vo.ShowsVO;

import java.util.List;

public interface MoviesService {

    JSONObject getAllCity();

    Object getCity(String location);

    IPage<Object> getMovies(PageDTO dto);

    IPage<Object> getFutureMovies(PageDTO dto);

    JSONObject getMovieInfo(String filmId);

    List getCinemas(CinemasDTO dto);

    JSONObject getCinemaInfo(String cityId, String cinemaId);

    List<ShowsVO> getShows(ShowsDTO dto);

    SeatsVO getSeats(String showId, String cinemaId);

    JSONObject createOrder(AddOrderDTO dto, Integer specialFlag);

    JSONObject confirmOrder(ConfirmOrderDTO dto, Channel channel);
}
